exports.baseConfig = {
  projectName: "store",
  date: "2024-10-9",
  designWidth: 750,
  deviceRatio: {
    640: 2.34 / 2,
    750: 1,
    375: 2,
    828: 1.81 / 2
  },
  sourceRoot: "src",
  outputRoot: "dist",
  plugins: [],
  defineConstants: {},
  copy: {
    patterns: [],
    options: {}
  },
  framework: "vue3",
  compiler: "vite",
  mini: {
    css: {
      preprocessorOptions: {
        scss: {
          api: "modern-compiler"
        }
      }
    },
    postcss: {
      pxtransform: {
        enable: false,
        config: {}
      },
      cssModules: {
        enable: false, // 默认为 false，如需使用 css modules 功能，则设为 true
        config: {
          namingPattern: "module", // 转换模式，取值为 global/module
          generateScopedName: "[name]__[local]___[hash:base64:5]"
        }
      }
    },
    lessLoaderOption: {
      additionalData: `@TARO_APP_ASSETS_BASE:'${process.env.TARO_APP_ASSETS_BASE}';`
    },
    sassLoaderOption: {
      scss: {
        api: "modern-compiler"
      }
    },
    webpackChain(chain) {
      console.log(chain);
      // throw new Error("ccc");

    }
  },
  h5: {
    publicPath: "/",
    staticDirectory: "static",

    miniCssExtractPluginOption: {
      ignoreOrder: true,
      filename: "css/[name].[hash].css",
      chunkFilename: "css/[name].[chunkhash].css"
    },
    postcss: {
      autoprefixer: {
        enable: true,
        config: {}
      },
      cssModules: {
        enable: false, // 默认为 false，如需使用 css modules 功能，则设为 true
        config: {
          namingPattern: "module", // 转换模式，取值为 global/module
          generateScopedName: "[name]__[local]___[hash:base64:5]"
        }
      }
    }
  },
  rn: {
    appName: "taroDemo",
    postcss: {
      cssModules: {
        enable: false // 默认为 false，如需使用 css modules 功能，则设为 true
      }
    }
  },
  url: {
    enable: true,
    config: {
      limit: 1
    }
  }
};
